using System;
using System.Linq;
using System.Xml.Linq;


namespace MsBuildAxTasks.Util
{
    class ProccesCompileLog
    {
        void Proccess(string xmlFile)
        {
            XDocument doc = XDocument.Load(xmlFile);

            var q = from errors in doc.Elements("AxaptaAutoRun")
                        .Elements("XpoImport")
                            .Descendants("Error")
                    select errors;

            Console.WriteLine("Found {0} error in the application", q.Count());
        }
    }
}
